Write some tests in chai and mocha