Migrate tests to Mocha