adding coverage for util module
more coverage, and fixed a logic error in util.dns_dict_to_string()