added test; fix on localstoragespec.js; replaced existFromLocalStorage to existInLocalStorage