Fix redirects tests
Handle relative redirects