Added get_config and its tests.