ehlo,
attched patch is an integration test for regression #3093.
I prepared a test and I let someone else to fix it :-)
I will try to find more bugs in downstream tests.
BTW we might move test from test_ts_cache somewhere else.
But it was the fastest way how to write a test without enumeration.
LS