         message.identifier = "update-1"
         message.text = "Foobar"
 
-        var obj = ChatData(type: .message, timestamp: Date())
+        var obj = ChatData(type: .message, timestamp: Date().addingTimeInterval(-1))
         obj.message = message
 
         let (indexPaths, _) = controller.insert([obj])

        XCTAssertEqual(controller.indexPathOf(obj1.identifier)?.row, 2, "obj1 found in correct row")
        XCTAssertEqual(controller.indexPathOf(obj2.identifier)?.row, 3, "obj2 found in correct row")
        XCTAssertEqual(controller.indexPathOf(obj3.identifier)?.row, 4, "obj3 found in correct row")
    }

    func testIndexPathOfMessage() {


        var obj2 = ChatData(type: .message, timestamp: Date())
        obj2.message = message
        obj2.timestamp = Date().addingTimeInterval(-2.0)

        var obj1 = ChatData(type: .header, timestamp: Date())
        obj1.timestamp = Date().addingTimeInterval(-3.0)

        var obj3 = ChatData(type: .message, timestamp: Date())
        obj3.timestamp = Date().addingTimeInterval(-1.0)

        controller.insert([obj2, obj1, obj3])

