Fixed compilation error in TestTaskService.