Make environment-variable tests work on win32, which has only one method and lacks (un)setenv. svn:r1253