change the implemetation of remove node
fix a test case