added test cases for environments