Fix tests to properly handle windows \r\n line endings
Credit christav