Fix broken tests.

* Add `npm test`, TravisCI.