change test-connection to https too