Add tests for #6027.
drwxr-xr-x - testsuite