> An option may be to modify the compiler so it allows to override protection in code contained inside unittest{...}.
Another option is to modify the compiler so it sees unittests modules as part of another module (using a mixin() on a string import is too much hacky).
Bye,
bearophile