added mocha test and travis integration