testsuite: Add testcase for #17206