Better test for authentication errors.