testsuite: Add test for #14346