Refactor out common bits from temp_url tests.
Fix get_object_http_url, too.