added test for localstorage