anchor.diff:  
   
   test_single_join(_Config) ->
  +    join_test(2).
  +
  +test_double_join(_Config) ->
  +    join_test(3).
  +
  +test_triple_join(_Config) ->
  +    join_test(4).
  +
  +test_quadruple_join(_Config) ->
  +    join_test(5).
  +
  +test_quadruple_join_single_leave(_Config) ->
  +    join_leave_test(5, 4).
  +
  +test_quadruple_join_double_leave(_Config) ->
  +    join_leave_test(5, 3).
  +
  +test_quadruple_join_triple_leave(_Config) ->
  +    join_leave_test(5, 2).
  +
  +test_quadruple_join_quadruple_leave(_Config) ->
  +    join_leave_test(5, 1).
  +
  +
  +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  +%
  +% join helper
  +%
  +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  +
  +join_test(TargetSize) ->
       wait_for_ring_size(1),
       wait_for_correct_ring(),
  -    %ct:pal("leases ~p", [get_all_leases()]),
  -    join_until(2),
  +    join_until(TargetSize),
       true.
  -
  -test_double_join(_Config) ->
  -    wait_for_ring_size(1),
  -    wait_for_correct_ring(),
  -    %ct:pal("leases ~p", [get_all_leases()]),
  -    join_until(3),
  -    true.
  -
  -test_triple_join(_Config) ->
  -    wait_for_ring_size(1),
  -    wait_for_correct_ring(),
  -    %ct:pal("leases ~p", [get_all_leases()]),
  -    join_until(4),
  -    true.
  -
  -test_quadruple_join(_Config) ->
  -    wait_for_ring_size(1),
  -    wait_for_correct_ring(),
  -    %ct:pal("leases ~p", [get_all_leases()]),
  -    join_until(5),
  -    true.
  -
  -test_quadruple_join_single_leave(_Config) ->
  -    wait_for_ring_size(1),
  -    wait_for_correct_ring(),
  -    %ct:pal("leases ~p", [get_all_leases()]),
  -    join_until(5),
  -    leave_until(5, 4),
  -    true.
  -
  -
  -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  -%
  -% join helper
  -%
  -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   
   join_until(TargetSize) ->
       joiner_helper(1, TargetSize).
  
positive.code:             unittest_helper:stop_ring(),
              {priv_dir, PrivDir} = lists:keyfind(priv_dir, 1, Config),
              unittest_helper:make_ring(1, [{config, [{log_path, PrivDir},
                                                      {leases, true}]}]),
              Config
      end.
  
  
negative.code: % leave helper
  %
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  
  join_leave_test(JoinTargetSize, LeaveTargetSize) ->
      wait_for_ring_size(1),
      wait_for_correct_ring(),
      join_until(JoinTargetSize),
      leave_until(JoinTargetSize, LeaveTargetSize),
      true.
  
  leave_until(TargetSize, TargetSize) ->
      ok;
  