fixed run_tests