CoreData and unit tests