Fixed text token test by adding states to one of the lexers
Added extern terminal test suite and fixed a couple of issues