Fix for bug #1303 (030a2b8c) was not complete. libcurl still pruned DNS entries added manually after detecting a dead connection. This test checks such behavior.