added localstorage in for test