anchor.diff:      {noreply, NewState};
   
   handle_info({chunk, {stored, Index, Offset, Length, Pid}}, State) ->
  -    #state{active=true, requests=Requests} = State,
  -    NewState = State#state{},
  +    #state{active=true,
  +        requests=Requests,
  +        fetched=Fetched,
  +        stored=Stored} = State,
  +    Chunk = {Index, Offset, Length},
  +    NewState = case gb_trees:lookup(Chunk, Fetched) of
  +        none -> State;
  +        {value, _} -> 
  +            NewFetched = gb_trees:delete(Chunk, Fetched),
  +            NewStored = gb_sets:insert(Chunk, Stored),
  +            INewState = State#state{
  +                fetched=NewFetched,
  +                stored=NewStored},
  +            INewState
  +    end,
       {noreply, NewState}.
   
   terminate(_, State) ->
  
positive.code:     etorrent_utils:ping(pending()),
      etorrent_utils:ping(testpid()),
      %% Expect endgame to send out request if the chunk is dropped before it's stored
      ?assertEqual({ok, [{0, 0, 1}]}, ?chunkstate:request(1, testset(), testpid())).
  
  
  
  
negative.code:     ?_test(test_activated()),
      ?_test(test_active_one_assigned()),
      ?_test(test_active_one_dropped()),
      ?_test(test_active_one_fetched()),
      ?_test(test_active_one_stored())
      ]}}.
  
  test_registers() ->
  