 
         do {
             // Save the token
-            let keychainItem = try keychain.addToken(token)
+            let savedToken = try keychain.addToken(token)
 
             // Restore the token
             do {
-                guard let secondKeychainItem = try keychain.persistentTokenWithIdentifier(keychainItem.identifier) else {
-                    XCTFail("Failed to recover persistent token with identifier: \(keychainItem.identifier)")
+                guard let secondKeychainItem = try keychain.persistentTokenWithIdentifier(savedToken.identifier) else {
+                    XCTFail("Failed to recover persistent token with identifier: \(savedToken.identifier)")
                     return
                 }
-                XCTAssertEqual(secondKeychainItem, keychainItem)
+                XCTAssertEqual(secondKeychainItem, savedToken)
             } catch {
                 XCTFail("persistentTokenWithIdentifier(_:) failed with error: \(error)")
                 return


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


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