Extract _infer_function_call and _create_call functions in call tests