add symlink directory check impl and test