Fix bug on npm test