Fix tests on windows in non-forked mode.