Fixed node.js issue in the tests.
Bumped mocha and chai dependencies.
Fixed connect test.