adds the test script to npm packages
adds travis config