Fix for issue #156

Allowing creation of app domains from within unit tests