Fix infinity testcase on windows