Check for has_config_files key in tests

Seems that not all python-apt verson have this key so check that.