change tests to mocha