HDFS-5432: make the test insensitive to host name