added mocha to dev-dependencies
modified test