fixed run_tests.py bug