test for local storage