testDirectories: added tests for directory structures