Added soem unit test code.  Added debugs.  In case anyone is wondering,
this stuff is being written to origin so that I can get it to teuthology.front
to test.