Add npm test script and travis config