get rid of dependencies on environment variables
Merge pull request #2435 from yugangw-msft/RemoveEnvVar

get rid of dependencies on environment variables for unit test run (mocked)