[modules] PR20786: add (already passing) regression test from the bug report.