Reduced unit test code duplication, as well as hopefully more reliable profile unit tests on slow EC2 machines.  On fast machines, this will hopefully speed up the unit tests.