Add mocha to dev dependencies
Spaces to tabs
Fix tests