added missing self argument in run_tests