Remove some calls to TestingEnvironment.addHooks. [ci skip]