Updated to use http client library 2.2.28
Hopefully fixed #4
Added better test coverage