fix deleteFamily & deleteFamilyVersions & test refactoring