 
             // Remove the token
             do {
-                try keychain.deletePersistentToken(keychainItem)
+                try keychain.deletePersistentToken(savedToken)
             } catch {
                 XCTFail("deletePersistentToken(_:) failed with error: \(error)")
                 return


            // Attempt to restore the deleted token
            do {
                let fourthKeychainItem = try keychain.persistentTokenWithIdentifier(keychainItem.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(savedToken,
                    withToken: modifiedToken)
                XCTAssertEqual(modifiedKeychainItem.identifier, savedToken.identifier)
                XCTAssertEqual(modifiedKeychainItem.token, modifiedToken)
            } catch {
                XCTFail("updatePersistentToken(_:withToken:) failed with error: \(error)")
