Updated tests for Parser classes, fixed detected bugs