Testing local storage saving state