Simplify non HTTPS request in unit test