clean up AppHost in tests