Merge "test_config: Fix failure and segfault when config_hook is run twice."