Fix the auth tests and add the offline mode