add .travis.yml
fix unit test
update mocha and through dependencies to latest versions