Fix unit test to work with different line endings