deduplicate tests for _handle_http_429