Clean up implicit casts in test_http{basic,digest}