add test for task.next()