add testing with mocha