add tests to check api connect with https