Added pid for run_tests