modify the codes to be tested by jasmine-node.