(#2342) - failing test to repro replication issue

This test reproduces the error reported in #2342.
Before the fix, it succeeds in the http-http and
http-local tests but fails in the other 2 combinations.
After the fix, it passes all four.