Functional Testing with mocha and webdriverjs