Fix PartnerFactory for tests