Fixed the environment delete test