Adding npm test for travis ci.