anchor.diff:                                                 {leases, true},
                                                  {db_backend, db_mnesia},
                                                  {start_type, recover}]}]),
  -  util:wait_for(fun admin:check_leases/0),
  +  lease_checker2:wait_for_clean_leases(500, 4),
     true.
   
   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  
positive.code: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  write(_Config) ->
    % write data to KV
    [kv_on_cseq:write(integer_to_list(X),X) || X <- lists:seq(1, 100)].
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  % test read/1 ensure data integrity after recovery
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  read(Config) ->
    {priv_dir, PrivDir} = lists:keyfind(priv_dir, 1, Config),
    unittest_helper:stop_ring(),
    % wait for leases to expire
    timer:sleep(11000),
  
negative.code: end_per_group(remove_node = Group, Config) ->
        unittest_helper:end_per_group(Group, Config);
  end_per_group(Group, Config) ->
      ct:pal("stop ring, stop mnesia and clean repository"),
      % stop ring, stop mnesia and clean repository
      PWD = os:cmd(pwd),
      WorkingDir = string:sub_string(PWD, 1, string:len(PWD) - 1) ++
  