memory test for alloc & map