fix httplib NameError
add test
Merge pull request #156 from Infinidat/pull_request_1

fix httplib NameError