Removed unused errors and fixed a typeo.
Added test for line_info.