Add a regression test for TypeError propagation in auth backends.