modified run_test to work using getattr(main)
betfred now uses run_test
converted stan james to use run_test
modified PP to use new run_test code
WH now uses run_test