unit tests for localstorage