Modified testing of max_iterations where more iterations are possible to run two iterations rather than just 1 to also help verify total_tasks_processed is returned rather than just total for 1 iteration