Fixes UpdateUserPermissionHandlerTest
Fixes template tests