testing api with node.js