Test for adding dependencies to a task.