Add task scheduler test for whole pipeline run.