Fixed unit test on windows.