Added TESTS_ENVIRONMENT as well as AS_TESTS_ENVIRONMENT.