test/net/dns.cpp: add DNSRequest tests using mocked libevent