Add unit tests for gcloud authentication code.