Fixed test for relative redirect.

As / points to the root of the domain, the expected result was actually wrong.
Use the new HTTP module from Core instead of duplicating the code here.