fix core data  merge operation cannot complete .
update test case