Test authentication backend exception handling