add localstorage tests