Cleans up http tests and fixes https request issue