improve npm test