Adds Tests for redirects

Doesn't currently make a distiction between 301 and other redirection.