factory_helper: shared_ptr<> declaration.
factory test suite refactoring.