fix alloc memory test