updated example.
Added unit tests for httpresponse