fixes failing tests
Merge pull request #315 from npm/global-var-leaks

fixes failing tests