switch tests to mocha