test for httpclient nullpointers