anchor.diff:                                                    {leases, true},
                                                     {db_backend, db_mnesia},
                                                     {start_type, recover}]}]),
  -    lease_checker2:wait_for_clean_leases(500, 4),
  +    lease_checker2:wait_for_clean_leases(500, config:read(replication_factor)),
  +    io:format("admin:check_ring(): ~p~n", [admin:check_ring()]),
  +    io:format("admin:check_ring_deep(): ~p~n", [admin:check_ring_deep()]),
  +    lease_checker2:get_kv_db(),
  +    io:format("api_vm:number_of_nodes: ~p~n", [api_vm:number_of_nodes()]),
  +    io:format("pid_groups:find_all(dht_node): ~p~n", [pid_groups:find_all(dht_node)]),
  +    io:format("pid_groups:find_all(routing_table): ~p~n", [pid_groups:find_all(routing_table)]),
       %% ring restored -> checking KV data integrity
       _ = check_data_integrity(),
       true.
  
positive.code: 
  groups() ->
      [{slide_tests, [sequence], [
                                  %% leaves one node with no lease
                                  %% half_join_and_recover_after_step2,
                                  %% half_join_and_recover_after_step3,
                                  %% half_join_and_recover_after_step4
                                 ]},
       {leave_tests, [sequence], [
                                  %% leaves one node with no lease
                                  %% half_leave_and_recover_after_step1,
                                  %% half_leave_and_recover_after_step2,
                                  half_leave_and_recover_after_step3,
                                  half_leave_and_recover_after_step4
                                 ]},
       {failing_tests, [sequence], [
                                    half_join_and_recover_after_step2,
                                    half_join_and_recover_after_step3,
                                    half_join_and_recover_after_step4
                                   ]},
       {repeater, [{repeat, 30}], [{group, leave_tests}, {group, failing_tests}]}
      ].
  
  all() -> [
            %{group, slide_tests},
            {group, leave_tests}
           ].
  
  
negative.code:                                                   {leases, true},
                                                    {db_backend, db_mnesia},
                                                    {start_type, recover}]}]),
      lease_checker2:wait_for_clean_leases(500, config:read(replication_factor)-1),
      io:format("admin:check_ring(): ~p~n", [admin:check_ring()]),
      io:format("admin:check_ring_deep(): ~p~n", [admin:check_ring_deep()]),
      lease_checker2:get_kv_db(),
      io:format("api_vm:number_of_nodes: ~p~n", [api_vm:number_of_nodes()]),
      io:format("pid_groups:find_all(dht_node): ~p~n", [pid_groups:find_all(dht_node)]),
      io:format("pid_groups:find_all(routing_table): ~p~n", [pid_groups:find_all(routing_table)]),
      %% ring restored -> checking KV data integrity
      _ = check_data_integrity(),
      true.
  