BUG: caching broken due to changed callback. #4542
A new regression test is a bit hard. I couldn't find a minimal reliable reproducer.
It only fails when I run our entire test suite. It does not fail if I run the failed test just by itself.
On the other hand your previous regression test is still included.