Fix tests on Windows by setting environment variable internally. Fixes #209.
Merge pull request #257 from aredridel/fix-tests-on-windows

Fix tests on Windows by setting environment variable internally. Fixes #209.