Enhancing directory symlink test