Fix tests on Win