Fixed issues found in the Parser and added tests for processing a line.