functional test for persistant state (localStorage)