Reverted removal of test checking for unknown hostname case.