tests for core data