Fix DNS error test (fixes #167)