Fixed a bug in the Node test script