                     return
                 }
                 
-                completion(bobSession, roomId, eventIdsChunks, expectation)
-            }
-        }
-    }
-    
-    // Test when there are several sync responses are merged in cache
+                completion(aliceSession, bobSession, roomId, eventIdsChunks, expectation)
+            }
+        }
+    }
+    
+    // Test when several sync responses are merged in a single cached response.
     //
-    // - Have Bob background service cache merged from 3 continuous sync responses
+    // - Have Bob background service store filled with 3 continuous sync responses
     // -> There must be a single cached sync response
     // -> The cached response must know both events
     // -> The store manager must know both events

                return
            }

            guard let roomId = roomId, let room = aliceSession?.room(withRoomId: roomId),
                  let bobSession = bobSession, let bobCredentials = bobSession.credentials  else {
                XCTFail("Cannot set up initial test conditions")
                expectation.fulfill()
                return
            }
            
            // - Pause Bob session
            bobSession.pause()
            
            // - Limit size for every sync response cache in background service

    // -> Bob session must have the key to decrypt the first message
    // -> The background service cache must be reset after session resume
    func testStoreWithLimitedCacheSize() {
        // - Have Bob background service store filled with 3 continuous sync responses but with a cache size limit
        self.createStoreScenario(messageCountChunks: [5, 2, 10], syncResponseCacheSizeLimit: 0) { (_, bobSession, roomId, eventIdsChunks, expectation) in
            
            guard let firstEventId = eventIdsChunks.first?.first,
                  let lastEventId = eventIdsChunks.last?.last
