using mocha to test