add npm test support