Fixes npm test for travis ci