update tests to reflect new gethostbyname_ex usage