Added tests for libResolv load.
Added guards around the remote possibility that libResolv doesn't load or isn't present.