testsuite: Add test for #13524