CVE-2016-0771: tests/dns: modify tests to check via RPC