test using mocha