rewriting http to https-connection
tests may fail because of lack of https-connection
change test-connection to https too
refactor tests and exception messages