lexer: Add more error test cases.