Testing hostname func