implemented del_node() and corresponding unit test.