I moved the setting of the test environment into the main wscript file so that the test wscript can assume that it is modifying the test environment. I thought this might fix an issue I was having but it didn't I'll revert this change.