Fix unit test to work on Windows