fix npm test for travis build