Fix failing unit test on Windows