Add specific test for line counting bug