improve the test on nonwindows