Fix test failed in test_http.py