anchor.diff:  start_and_wait() ->
     receive after 200 -> ok end,
     case start() of
  -    ok ->
  +    {ok,_} ->
         wait_for_start();
       _ ->
         erlang:display(waiting_for_shutdown),
  
positive.code: 
  %% main application starter
  start() ->
    application:start(ranch),
    application:start(crypto),
    application:start(cowlib),
    application:start(cowboy),
    application:start(rets).
  
  %% called from rets_app
  cowboy_opts() ->
  
negative.code:   ?assertEqual({200,0}, rets_client:put(localhost,tibbe,bbb,reset)),
    ?assertEqual({200,1}, rets_client:put(localhost,tibbe,bbb,counter)).
  
  t04_test() ->
    restart_rets(),
    ?assertEqual({200,[]},
                 rets_client:get(localhost)),
    ?assertEqual({200,"true"},
                 rets_client:put(localhost,tibbe)),
    ?assertEqual({200,[tibbe]},
                 rets_client:get(localhost)).
  
  restart_rets() ->
    application:stop(rets),
    application:stop(cowboy),
  