Fix npm test for Travis CI