Extracted test logic within MultiInstanceTasks to be able to test it locally and on the server