lexer: Update error test case to check the token even on error mismatch.