fix unit test failures on Windows