Support npm script for test

I supported `npm test` to run tests for cli.