Corrected the test case for environments, which seems to work..