Refactored hostnames comparison for testing which knows that localhost and 127.0.0.1 are the same host
Made UDPServerTest more robust in regard to localhost/127.0.0.1 host representation difference