RemoteTestCase was not calling doCleanups. It does now.
I took the opportunity to refactor some of the excess code-in-strings it used,
and added some more tests.