change test to mocha