Test hostname check