Updated the test to use mocks and only test against a single `redirect_to`.