tests: Introduce count_config_entries_match() helper
remote: Introduce git_remote_delete()