add test case for counting lines