fixed build issues with new locales as list update. also fixed tests where app service now uses permission repo