core: fix broken tests on windows