             } catch {
                 XCTFail("allPersistentTokens() failed with error: \(error)")
             }
-        } catch {
-            XCTFail("addToken(_:) failed with error: \(error)")
-        }
     }
 }

            } catch {
                // An error thrown is the expected outcome
            }
        } catch {
            XCTFail("addToken(_:) failed with error: \(error)")
        }
    }

    func testAllPersistentTokens() {

        // Create a token
        let token = testToken

        // Save the token
        let savedToken: PersistentToken
        do {
            savedToken = try keychain.addToken(token)
        } catch {
            XCTFail("addToken(_:) failed with error: \(error)")
            return
        }

            // Restore the token
            do {
