[524] Fixes lots of tests to make them run

Some of our tests were breaking if run as part of an entire testclass
and some were just broken through recent-ish changes.  They should run
now but .. ons and cospread tests aren't running for me because mockdrupal
isn't shutting down.