Fixes test failed in Windows.