Lexer test refactor