Add test case for line counter