Port authorization test cases to Mocha.