Fix test failure on windows