Testing line ending rules