Take out ref to env in tests except for environment_service_spec