Testsuite: add test for #10767