CBQE-2305: hostname management test fix

Change-Id: I4d4c2d638406819ce783a4965eacdf329623b34e
Reviewed-on: http://review.couchbase.org/38933
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Meenakshi Goel <meenakshi.goel@globallogic.com>