lexer test with expected outputs