testCMFActivity: Execute any pending activity at the end of testTryTwoMethods

Indexation activities may spawn further activities, and for_each_activity
expects the number of activities after a test to be zero.
12 jobs for master
in 0 seconds, using 0 compute credits, and was queued for 0 seconds