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

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