Adding test asserting that socket.errors are converted to new exceptions.