Port exchange test cases to Mocha.