fix shim tests on windows