Simplified lex() tests