Testing: Major rework; tied the tests into the unittest framework.
Authored by: ecarter 2007-07-03
Parent: [r5798]
Child: [r5800]