Add test for connection refused