improved regression test routines and added new compare_regression_tests.py