Added tests for setting environment variables