Fix tests for Windows.