Ported the maxBody test.
Migrated some more stuff to Mocha + Chai.