Add test for api with https protocol