Add support for `npm test`
Merge pull request #1143 from jeffmo/npm_test

Add support for `npm test`