fix several test cases run under windows