tests: fix TypeError in run_tests.py