Added a small additional function to be able to tell how many threads are currently being tracked by the ControlledThreadProfiler
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.