Copy the EnvironmentVariables dict before updating it.  Make unit tests more self-contained.