 
             // Attempt to restore the deleted token
             do {
-                let fourthKeychainItem = try keychain.persistentTokenWithIdentifier(keychainItem.identifier)
+                let fourthKeychainItem = try keychain.persistentTokenWithIdentifier(savedToken.identifier)
                 XCTAssertNil(fourthKeychainItem)
             } catch {
                 XCTFail("persistentTokenWithIdentifier(_:) failed with error: \(error)")

            // Modify the token
            let modifiedToken = Token(name: "???", issuer: "!", generator: token.generator.successor())
            do {
                let modifiedKeychainItem = try keychain.updatePersistentToken(keychainItem,
                    withToken: modifiedToken)
                XCTAssertEqual(modifiedKeychainItem.identifier, keychainItem.identifier)
                XCTAssertEqual(modifiedKeychainItem.token, modifiedToken)
            } catch {
                XCTFail("updatePersistentToken(_:withToken:) failed with error: \(error)")


            // Fetch the token again
            do {
                guard let thirdKeychainItem = try keychain.persistentTokenWithIdentifier(savedToken.identifier) else {
                    XCTFail("Failed to recover persistent token with identifier: \(savedToken.identifier)")
                    return
                }
                XCTAssertEqual(thirdKeychainItem.token, modifiedToken)
                XCTAssertEqual(thirdKeychainItem.identifier, savedToken.identifier)
            } catch {
                XCTFail("persistentTokenWithIdentifier(_:) failed with error: \(error)")
                return
