Changing test to use appdomains