Fix `npm test` for travis.