Improved httplib client test