CustomAlloc unit test