Test and fix auth.