tests: fix CoreData initialization