update pure_http tests to use latest version of effect APIs

also add a stub_pure_response method that makes it easier to
stub out the return value of pure_http.Request.