object_factory tests working with TypeInfo helper class