Port mgf1 test to mocha.