add ‘mocha’ test case and ‘karma’ config