Integration tests for dirs containing symlinks

- Tested directories containing symbolic links.
- Fixed errors when running the tests.

This work is related to https://github.com/endlessm/eos-shell/issues/2711