testsuite: Add test case for #4325