added test for deleting node