Add test cases for TokenError.