Add tests for filtering symlink entries when safe mode enabled