changed valid.remote.hostname to valid.remote.hostnames
test case for valid.remote.hostnames