finished tests for parser