Fix test for Windows

Closes gh-3020