writing tests with mocha and chai