Fix regression in test_request.py