add unit test for lines