fix test; data protection takes precedence over deleted version info
fixed condition for deleted objects