Add a test for #6037
drwxr-xr-x - testsuite