fix test long strings on windows

We expected `'Some long\nstring'` but got `'Some long\r\nstring'` on
windows because of different end-of-line markers.