             } catch {
                 XCTFail("persistentTokenWithIdentifier(_:) failed with error: \(error)")
             }
-        } catch {
-            XCTFail("addToken(_:) failed with error: \(error)")
-        }
     }
 
     func testDuplicateTokens() {


        let token1 = testToken, token2 = testToken

        do {
            // Add both tokens to the keychain
            let savedItem1 = try keychain.addToken(token1)
            let savedItem2 = try keychain.addToken(token2)
            XCTAssertEqual(savedItem1.token, token1)
            XCTAssertEqual(savedItem2.token, token2)

            // Fetch both tokens from the keychain
            do {

        // 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 {
