Added tests for env - with no code