added mocha, istanbul for testing