Modified testSimpleTag:test if all refs removed,fixed deleteDataArray