Splitting Resolv exception test into multiple tests.

The code was taken from an example given by Bryan McLellan.