Added valid environment test.
Added tests for environment settings.