add CoreData and test CoreData