Fix test to work correctly on windows.

Replace any instances of \r\n with \n.