Tweaked test to be the same on Windows and POSIX.