use mocha to test