extract hostname discovery tests as separate parametrized class