add delete node function and test it OK