testsuite: Add testcase for #14670