fix test to make request in secure mode