Added tests for redirect_url