Added some test for CoreData