testTaskHandling