Update test_mem.c

change the copy way every time copy litter but many