add test by mocha