Test for dtree_discard_node()