improved local storage test