Fixed tests to work on Windows.