testsuite: Add test for #4333