refactor lex_all in the test
more tests