Port request parsing test cases to Mocha.