fixed test bug on windows