stubbing http and testing stubbed endpoint