tests for api components use of localstorage