Added licence to TestAppDomain. Tidied up test a little.