added tests for envs
added tests for envs