Resolve npm test issue and add .travis.yml file