                 return
             }
 
-            guard let roomId = roomId, let room = aliceSession?.room(withRoomId: roomId),
+            guard let roomId = roomId,
+                  let aliceSession = aliceSession, 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
+            // Pause sessions to avoid noise with /sync requests and to avoid key reshare mechanism that fix e2ee issues
+            aliceSession.pause()
             bobSession.pause()
             
             // - Limit size for every sync response cache in background service

    }
    
    
    // Test when there are several gappy sync responses are merged in cache
    //
    // - Have Bob background service cache filled with a merged gappy sync responses
    // -> There must be a single cached sync response
    // -> The cached response can only know the last event
    // -> The store manager can only know the last event

    ///   - syncResponseCacheSizeLimit: value for MXBackgroundSyncService.syncResponseCacheSizeLimit.
    ///   - completion: The completion block.
    func createStoreScenario(messageCountChunks: [Int], syncResponseCacheSizeLimit: Int = 512 * 1024,
                                              completion: @escaping (_ aliceSession: MXSession,_ bobSession: MXSession, _ roomId: String, _ eventIdsChunks: [[String]], _ expectation: XCTestExpectation) -> Void) {
        // - Alice and Bob in an encrypted room
        let aliceStore = MXMemoryStore()
        let bobStore = MXFileStore()
