update test js
#618 - ensure cookies are only saved/removed if the resume feature is enabled