fix test cases on windows