Fix test failure on windows (\r\n -> \n)