Add testcase for #8565
drwxr-xr-x - testsuite