added config and tests for mocha