test for line endings