testsuite: Add regression test for #13474