tests: Fix variable shadowing
tests: Fix G_OPTION_ARG_NONE options

They require a boolean arg_data.
tests: Fix hostname addition to the resolver

Add the hostname, not the structure containing it.
tests: Fix example hostnames

Hostnames which are passed to the resolver shouldn’t include path components.
Fix initialization of replay mode