fixed a bug with run_succeed counter
cleanup in run_tests.py
New diff function for ESG