add memory test code�
for array