Fix DBG format strings
Test ns_resolve

It's possible that this test will be slow on machines
with unreachable dns servers. It can be skipped with -DNO_DNS_TEST
Test base64 decoding