BSON.load(filename,@__MODULE__) doesn't work inside a Test Module

I have a Module. Inside that module I have a BSON.@save and a BSON.load which takes care of saving a struct to and from disk.

The function that calls the BSON.load(filename,@MODULE) works fine if called by REPL/Main, or if called by ]pkg test if the runtests.jl function does not wrap the call to the load file inside its own module.

If the runstests.jl function is a module, then the struct loader fails because of ERROR: LoadError: ‘myModule’ UndefVarError

Any way to make this work?

Is this a common problem?

Best Regards,
Allan