Add unit tests for glance/common/client.py

WIP

Fixes bug XX

Change-Id: If58b90a189ba675ddc890f339659f5d1b59c33a3