add unit tests with mocha, chai