Added test for parallel flow with empty tasks array.