Improve unit tests for python-glanceclient.glanceclient.common.http

Add several tests for glanceclient.common.http module

Fixes: bug #1149445
Change-Id: I6a47c64e11cefea276163777dcd559316fc8e0ad