Fixed parser logic to return proper line numbers and updated the test