Fix auth DeprecationWarning test.