Fix failing test on Windows