Re-structuring auto_test/test.py to make runTest more readable.