refactored TestingEnvironment