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:     {priv_dir, PrivDir} = lists:keyfind(priv_dir, 1, Config),
      %% write data
      _ = [kv_on_cseq:write(integer_to_list(X),X) || X <- lists:seq(1, 100)],
      %% hook into merge-protocol
      [gen_component:bp_set_cond(Pid, block(self(), MsgTag),
                                 block)
  
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.
  