Clean up of the unit test runner code for command line usage.
Authored by: bugman 2011-01-03
Parent: [r12097]
Child: [r12099]