improve test on environment variable