Use Hash[Array] instead of Array#to_h.
Add response headers to request stubs.
Change :uri to :url.