Test case for TokenError.