Write tests and documentation for new test helper classes.

They're fairly complicated and everyone needs to know how to use and be sure they work.