 			expect(error).to(beNil())
 		}
 
-		mainContext = NSManagedObjectContext(parent: .persistentStore(storeCoordinator),
-		                                     concurrencyType: .mainQueueConcurrencyType)
+		mainContext = NSManagedObjectContext(concurrencyType: .mainQueueConcurrencyType)
+		mainContext.persistentStoreCoordinator = storeCoordinator
 	}
 
 	override func tearDown() {

	}

	func measureFRCInsertionPerformance(times: Int) {
		let controller = Children.query(mainContext)
			.sort(by: .ascending("value"))
			.makeController()



		mainContext.processPendingChanges()

		let collection = mainContext.reactive
			.objects(Children.self)
			.sort(by: .ascending("value"))
			.makeCollection(prefetching: .none)
		expect { try collection.fetch() }.toNot(throwError())
