testsuite: Add testcase for #16111