test for lexer