Adding ability to mock redirection