Fixed environmental variable test