Initial port of code grant test cases to Mocha.