Add tests for sendUpstream.