Fixed removal in per-doc-priority-queue
diff --git a/t/util/priority_sort.t b/t/util/priority_sort.t
index cc7233d..11f07f5 100644
--- a/t/util/priority_sort.t
+++ b/t/util/priority_sort.t
@@ -24,61 +24,61 @@
 ok( $sorter->insert(node(5,      'Baum 7')),  'Add record to sorter - 5');
 
 is($sorter->max_rank, 18_000, 'Check new max rank');
-is($sorter->top_identicals, 1, '1 top identical');
+is($sorter->top_identical_nodes, 1, '1 top identical');
 
 ok(!$sorter->insert(node(32_000, 'Baum 8')),  'Not relevant any more');
 ok( $sorter->insert(node(15_000, 'Baum 9')),  'Add record to sorter - 15_000');
 is($sorter->max_rank, 15_000, 'Check new max rank');
-is($sorter->top_identicals, 1, '1 top identical');
+is($sorter->top_identical_nodes, 1, '1 top identical');
 
 # Add some duplicates at the end of the queue
 ok( $sorter->insert(node(15_000, 'Baum 10')),  'Add record to sorter - 15_000');
 ok( $sorter->insert(node(15_000, 'Baum 11')),  'Add record to sorter - 15_000');
 ok( $sorter->insert(node(15_000, 'Baum 12')),  'Add record to sorter - 15_000');
 is($sorter->max_rank, 15_000, 'Check new max rank');
-is($sorter->top_identicals, 4, 'top identicals');
+is($sorter->top_identical_nodes, 4, 'top identicals');
 
 ok( $sorter->insert(node(44, 'Baum 13')),  'Add record to sorter - 44');
 is($sorter->max_rank, 4_000, 'Check new max rank');
-is($sorter->top_identicals, 1, 'top identicals');
+is($sorter->top_identical_nodes, 1, 'top identicals');
 
 ok( $sorter->insert(node(5, 'Baum 14')),  'Add record to sorter - 5');
 is($sorter->max_rank, 44, 'Check new max rank');
-is($sorter->top_identicals, 2, 'top identicals');
+is($sorter->top_identical_nodes, 2, 'top identicals');
 
 ok( $sorter->insert(node(44, 'Baum 15')),  'Add record to sorter - 44');
-is($sorter->top_identicals, 3, 'top identicals');
+is($sorter->top_identical_nodes, 3, 'top identicals');
 
 
 ok( $sorter->insert(node(2, 'Baum 16')),  'Add record to sorter - 2');
 is($sorter->max_rank, 44, 'Check new max rank');
-is($sorter->top_identicals, 3, 'top identicals');
+is($sorter->top_identical_nodes, 3, 'top identicals');
 
 ok( $sorter->insert(node(15, 'Baum 17')),  'Add record to sorter - 15');
 is($sorter->max_rank, 20, 'Check new max rank');
-is($sorter->top_identicals, 1, 'top identicals');
+is($sorter->top_identical_nodes, 1, 'top identicals');
 
 ok( $sorter->insert(node(5, 'Baum 18')),  'Add record to sorter - 5');
 is($sorter->max_rank, 15, 'Check new max rank');
-is($sorter->top_identicals, 1, 'top identicals');
+is($sorter->top_identical_nodes, 1, 'top identicals');
 
 ok( $sorter->insert(node(5, 'Baum 19')),  'Add record to sorter - 5');
 is($sorter->max_rank, 5, 'Check new max rank');
-is($sorter->top_identicals, 4, 'top identicals');
+is($sorter->top_identical_nodes, 4, 'top identicals');
 
 ok( $sorter->insert(node(5, 'Baum 20')),  'Add record to sorter - 5');
 is($sorter->max_rank, 5, 'Check new max rank');
-is($sorter->top_identicals, 5, 'top identicals');
+is($sorter->top_identical_nodes, 5, 'top identicals');
 
 ok( $sorter->insert(node(5, 'Baum 21')),  'Add record to sorter - 5');
 is($sorter->max_rank, 5, 'Check new max rank');
 is($sorter->length, 7, 'Length');
-is($sorter->top_identicals, 6, '7 top identicals');
+is($sorter->top_identical_nodes, 6, '7 top identicals');
 
 ok( $sorter->insert(node(5, 'Baum 22')),  'Add record to sorter - 5');
 is($sorter->max_rank, 5, 'Check new max rank');
 is($sorter->length, 8, 'Length');
-is($sorter->top_identicals, 7, '7 top identicals');
+is($sorter->top_identical_nodes, 7, '7 top identicals');
 
 ok( $sorter->insert(node(3, 'Baum 23')),  'Add record to sorter - 3');
 is($sorter->max_rank, 5, 'Check new max rank');
@@ -120,7 +120,7 @@
 ok($sorter->insert(node(2,'Baum 4')), 'Added rank 1 (2)');
 
 is($sorter->length, 4, 'Length');
-is($sorter->top_identicals, 2, 'top identicals');
+is($sorter->top_identical_nodes, 2, 'top identicals');
 
 my $array = $sorter->reverse_array;
 is_deeply($array, [
diff --git a/t/util/priority_sort_per_doc.t b/t/util/priority_sort_per_doc.t
index 0995c8b..a0480f3 100644
--- a/t/util/priority_sort_per_doc.t
+++ b/t/util/priority_sort_per_doc.t
@@ -35,6 +35,12 @@
 ok($sorter->insert(node(5, 1, 'Baum 9')), 'Add record to sorter - 5/1');
 is($sorter->length, 6, 'Length');
 
+ok($sorter->insert(node(5, 2, 'Baum 10')), 'Add record to sorter - 5/2');
+is($sorter->length, 6, 'Length');
+
+ok($sorter->insert(node(5, 7, 'Baum 11')), 'Add record to sorter - 5/2');
+is($sorter->length, 10, 'Length');
+
 diag 'Test with same rank and multi in-docs!';
 
 done_testing;