Fixed windows-related test failures (that string format doesn't work with \r\n line...