Condtionnal hostname testing