adds some unit tests for Environment