added ADA_REDIRECT_TO_TEST define and the control that block the save in navigationHistory  when the unload parameter is set