That can be worked around by using the Motoko interpreter to run tests, although there is a difference to the environment in which the code is running using that approach.
The works with ActorSpec at least, I’m not sure about with the matchers package.