[mh-252] cloud factory submit task as a class, so that we can reach in and mock methods that the class relies on.
[mh-252] cloud factory submit task as a class, so that we can reach in and mock methods that the class relies on.

ResearchSoftwareInstitute/MyHPOM,ResearchSoftwareInstitute/MyHPOM,ResearchSoftwareInstitute/MyHPOM,ResearchSoftwareInstitute/MyHPOM,ResearchSoftwareInstitute/MyHPOM