fix debug flag in run_tests