Unit testing with mocha and chai