Add unit tests for gcloud authentication code.
Squash unit test commits into one.