frontend: added local storage service, refactored tests