Test case for connection refused.