convert test suite to mocha