[1.6.x] Fixed #19196 -- Added test/requirements

Backport of 4d92a0bd86 from master.