Add test that invalid domain raises a ConnectionError
Merge remote-tracking branch 'kevinburke/domain-failure-connection-error' into bug/2192
Add test for invalid port