Fix broken test added after #773

This test was written after #773 (at least, I'm pretty sure it was) so
fix it to work with the URI check.
Update #773 for ruby without HTTPResponse#uri=

Older ruby does not have this feature so we have to fall back to the
slow way.
Add #773 to History