Fixed tests not working on Windows.