Fix redirectUrl Test regression in debug mode