* Add authorization checks in Background agents * fix tests * Fixes * Fixes with tests * Updates * Fix tests