     
     func test_numberOfRowsInSection_mustReturnZero() {
         let dataSource = self.createTableViewFetcherDataSource(sectionNameKeyPath: nil)
-        EntitySyncHistory.removeAll(inManagedObjectContext: self.managedObjectContext)
+        EntityTest.removeAll(inManagedObjectContext: self.managedObjectContext)
         let numberOfRows = dataSource.tableView(self.tableView, numberOfRowsInSection: 0)
         XCTAssertEqual(numberOfRows, 0)
     }
     
     func test_numberOfRowsInSection_mustReturnNonZero() {
         let dataSource = self.createTableViewFetcherDataSource(sectionNameKeyPath: nil)
-        EntitySyncHistory.removeAll(inManagedObjectContext: self.managedObjectContext)
-        EntitySyncHistory.entityAutoSyncHistoryByName("rule-test-name",
-            lastExecutionDate: nil,
-            inManagedObjectContext: self.managedObjectContext)
+        EntityTest.removeAll(inManagedObjectContext: self.managedObjectContext)
+        EntityTest.entityTest(nil, name: "test-name", order: nil, inManagedObjectContext: self.managedObjectContext)
         do {
             try dataSource.refreshData()
             XCTAssertTrue(true)

    }

    func test_didChangeSection_forDefault_mustNotCrash() {
        let dataSource = self.createTableViewFetcherDataSource(sectionNameKeyPath: "ruleName")
        let tableViewCellNib = UINib(nibName: "TableViewCell", bundle: NSBundle(forClass: self.dynamicType))
        self.tableView.registerNib(tableViewCellNib, forCellReuseIdentifier: "TableViewCell")
        self.tableView.dataSource = dataSource
        
        EntitySyncHistory.removeAll(inManagedObjectContext: self.managedObjectContext)
        
        let ruleName = TestUtil().randomRuleName()
        EntitySyncHistory.entityAutoSyncHistoryByName(ruleName,
            lastExecutionDate: nil,
            inManagedObjectContext: self.managedObjectContext)
        
        let ruleName2 = TestUtil().randomRuleName()
        EntitySyncHistory.entityAutoSyncHistoryByName(ruleName2,
            lastExecutionDate: nil,
            inManagedObjectContext: self.managedObjectContext)
        
        let ruleName3 = TestUtil().randomRuleName()
        EntitySyncHistory.entityAutoSyncHistoryByName(ruleName3,
            lastExecutionDate: nil,
            inManagedObjectContext: self.managedObjectContext)
        
        do {
            try dataSource.refreshData()

        tableView.cellForRowAtIndexPathBlock = { () -> UITableViewCell? in
            return TableViewCell()
        }
        
        let dataSource = createTableViewFetcherDataSource(sectionNameKeyPath: nil, tableView: tableView)
        let tableViewCellNib = UINib(nibName: "TableViewCell", bundle: NSBundle(forClass: self.dynamicType))
        self.tableView.registerNib(tableViewCellNib, forCellReuseIdentifier: "TableViewCell")
        self.tableView.dataSource = dataSource
        let helper = CoreDataUtil(inManagedObjectContext: self.managedObjectContext)
        
        helper.removeAllTestEntities()
        
        let entityTest = helper.createTestMass(withSize: 2, usingInitialIndex: 1, inSection: 1, initialOrderValue: 1).last
        
        do {
            try dataSource.refreshData()
            XCTAssertTrue(true)
        } catch {
            XCTAssertTrue(false)
        }

        self.tableView.beginUpdates()
        dataSource.controller(dataSource.fetchedResultsController,
            didChangeObject: entityTest!,
            atIndexPath: NSIndexPath(forRow: 1, inSection: 0),
            forChangeType: .Update,
            newIndexPath: nil)
