Fix the unit tests from the diff viewer work.
Fix the unit tests from the diff viewer work.

My fixes for the diff viewer work never made it in, and I lost them.
Several tests were broken due to either not accepting the new request
parameter in a function spy, or not calling the render function to test
the code that moved into there.

This fixes all the remaining unit tests.

Testing Done:
Unit tests pass.

Reviewed at https://reviews.reviewboard.org/r/7160/

reviewboard/reviewboard,bkochendorfer/reviewboard,beol/reviewboard,KnowNo/reviewboard,davidt/reviewboard,brennie/reviewboard,KnowNo/reviewboard,chipx86/reviewboard,davidt/reviewboard,bkochendorfer/reviewboard,custode/reviewboard,sgallagher/reviewboard,custode/reviewboard,chipx86/reviewboard,beol/reviewboard,davidt/reviewboard,beol/reviewboard,brennie/reviewboard,bkochendorfer/reviewboard,reviewboard/reviewboard,reviewboard/reviewboard,bkochendorfer/reviewboard,custode/reviewboard,KnowNo/reviewboard,chipx86/reviewboard,brennie/reviewboard,reviewboard/reviewboard,davidt/reviewboard,sgallagher/reviewboard,sgallagher/reviewboard,beol/reviewboard,sgallagher/reviewboard,chipx86/reviewboard,custode/reviewboard,brennie/reviewboard,KnowNo/reviewboard