test-config: add tests for the config_set API