wrote tests for deploy.deployForEnv