anchor.diff:      ?_test(begin
           config:set("os_daemons", "bar",
                            filename:join([?FIXTURESDIR, DName]), false),
  -        timer:sleep(?DELAY),
  +        ensure_n_daemons_are_alive(2), % DName and "bar"
           {ok, Daemons} = couch_os_daemons:info([table]),
           lists:foreach(fun(D) ->
               check_daemon(D)
           end, Daemons),
   
           config:delete("os_daemons", "bar", false),
  -        timer:sleep(?DELAY),
  +        ensure_n_daemons_are_alive(1), % Dname only, "bar" should be dead
           {ok, [D2]} = couch_os_daemons:info([table]),
           check_daemon(D2, DName),
   
  
positive.code:     ?assertEqual(halted, D#daemon.status),
      ?assertEqual(nil, D#daemon.errors),
      ?assertEqual(nil, D#daemon.buf).
  
negative.code:                          filename:join([?FIXTURESDIR, DName]), false),
          config:set("os_daemons", "baz",
                           filename:join([?FIXTURESDIR, DName]), false),
          ensure_n_daemons_are_alive(3), % DName, "bar" and "baz"
          {ok, Daemons} = couch_os_daemons:info([table]),
          lists:foreach(fun(D) ->
              check_daemon(D)
  