test by mocha chai