tests for Environment.