anchor.diff:  
   test_active_one_fetched() ->
       ok = ?endgame:activate(testpid()),
  -    Main = self(),
       %% Spawn a separate process to introduce the chunk into endgame
       Orig = spawn_link(fun() ->
           ?pending:register(pending()),
           ?chunkstate:assigned(0, 0, 1, self(), testpid()),
  -        Main ! assigned,
  +        mainpid() ! assigned,
           etorrent_utils:expect(die)
       end),
       etorrent_utils:expect(assigned),
  
positive.code: 
  test_active_one_assigned() ->
      ok = ?endgame:activate(testpid()),
      Main = self(),
      Pid = spawn_link(fun() ->
          ?pending:register(pending()),
          ?chunkstate:assigned(0, 0, 1, self(), testpid()),
          Main ! assigned,
          etorrent_utils:expect(die)
      end),
      etorrent_utils:expect(assigned),
  
negative.code: testpid() -> ?endgame:lookup_server(testid()).
  testset() -> etorrent_pieceset:from_list([0], 8).
  pending() -> ?pending:lookup_server(testid()).
  mainpid() -> etorrent_utils:lookup(?MODULE).
  
  setup() ->
      etorrent_utils:register(?MODULE),
      {ok, PPid} = ?pending:start_link(testid()),
      {ok, EPid} = ?endgame:start_link(testid()),
      ok = ?pending:receiver(EPid, PPid),
  