Unit tested iOS & Mac OS X framework to handle multithreaded Core Data operation