Extracted run and nextText from the parser, split tests