Add tests around deleting dependent subtasks