testsuite: Test for #4780