Add tests for check if symlinks in cwd handled correctly.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>