fixing test failure, move dml operation back to the function due to soql query list reference
fixing test failure, move dml operation back to the function due to soql query list reference

SalesforceFoundation/Cumulus,SalesforceFoundation/Cumulus,SalesforceFoundation/Cumulus,SalesforceFoundation/Cumulus