Tweaked testRetainsNewLineCharacters