modify the Node code, to make it test well.

and delete some codes don't need anymore.