testsuite: Add tests from #11982