fixed memory leaks in testItemData.