Fix test to work on Windows too