changed TestingEnvironment to reuse the class in sub modules