Fixed Node.js API test