 
 private extension MXRoom {
     
+    /// Send multiple text messages. If any of sending operations is failed, returns immediately with the error. Otherwise waits for all messages to be sent before calling the completion handler.
+    /// - Parameters:
+    ///   - messages: Messages to be sent
+    ///   - completion: Completion block
     func sendTextMessages(messages: [String], completion: @escaping (MXResponse<[String]>) -> Void) {
         let dispatchGroup = DispatchGroup()
         var eventIDs: [String] = []

                            
                            var syncResponse = syncResponseStore.syncResponse
                            XCTAssertNotNil(syncResponse, "Sync response should be present")
                            XCTAssertFalse(syncResponse!.rooms.join[roomId]!.timeline.limited, "Room timeline should not be limited")
                            
                            //  then send a lot of messages

        
    }
    
    // Nonimal test with encryption: Get and decrypt an event from the background service
    // - Alice and Bob are in an encrypted room
    // - Bob stops their app
    // - Alice relogins with a new device and creates new megolm keys
    // - Alice sends a message
    // - Bob uses the MXBackgroundSyncService to fetch it
    // -> The message can be read and decypted from MXBackgroundSyncService
    // - Bob restarts their MXSession
    // -> The message is available from MXSession and no more from MXBackgroundSyncService
    func testWithEncryptedEventRollingKeys() {
        
        let aliceStore = MXFileStore()
