testing with mocha, sinon, chai