Fix unit test failing in windows