Workflow test for loop and client