Unit test domain leaving