Changed mocha timeout to 5 seconds to avoid mocha timeout.