Move get_dict_by_test() into run_tests.py