Add tests for check if symlinks in cwd are handled correctly.

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