Move tests to mocha