add test for end line