Fixes run_tests