Another memory alloc fix to hashmap test