Use shot to mock the http objects
Cover client side with test
Add hapi example
Resolve issue