Add regression test for #8142
drwxr-xr-x - testsuite