test: add `agent: null` http client request test

This is just the test portion from #7012 / #7189,
but targetted for the v0.10 branch.
Merge remote-tracking branch 'upstream/v0.10' into v0.10