More test cases for setting environment variables