added the basic test for the heap_object_factory