         }
     }
 
-    // Test when there are several sync response files in cache
-    // Almost the same test as testStoreWithMergedCachedSyncResponse.
+    // Test when several sync responses are stored in several cached responses.
+    // Almost the same test as testStoreWithMergedCachedSyncResponse except that cache size is limited.
     //
-    // - Have Bob background service cache filled with 3 continuous sync responses
+    // - Have Bob background service store filled with 3 continuous sync responses but with a cache size limit
     // -> There must be 3 cached sync responses
     // -> The first cached response must know only the first event
     // -> The last cached response must know only the last event

    // -> 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 cache filled with 3 continuous sync responses
        self.createStoreScenario(messageCountChunks: [5, 2, 10], syncResponseCacheSizeLimit: 0) { (bobSession, roomId, eventIdsChunks, expectation) in
            
            guard let firstEventId = eventIdsChunks.first?.first,
                  let lastEventId = eventIdsChunks.last?.last

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