Added tests for environment