Lexer nextName, with test