Fix to issue #156

Allowing creation of app domains from within unit tests