anchor.diff:      end || {Message, Packages, Result} <- [
           {
               "plugin returns valid response",
  -            [#package{name= "package1", branch= "branch1"}],
  -            {ok, [#package{name= "package1", branch= "branch1", changelog= <<"branch1 changelog">>}]}
  +            [#repository_package{name= "package1", branch= "branch1"}],
  +            {ok, [#repository_package{name= "package1", branch= "branch1", changelog= <<"branch1 changelog">>}]}
           },
           {
               "checking packages with error status ignored",
  -            [#package{name= "package1", branch= "branch1", status=error}],
  -            {ok, [#package{name= "package1", branch= "branch1", status=error}]}
  +            [#repository_package{name= "package1", branch= "branch1", status=error}],
  +            {ok, [#repository_package{name= "package1", branch= "branch1", status=error}]}
           },
           { 
               "error while getting changelog",
  -            [#package{name= "package2", branch= "branch2"}],
  -            {ok, [#package{name= "package2", branch= "branch2", changelog= <<"cant get changelog">>}]}
  +            [#repository_package{name= "package2", branch= "branch2"}],
  +            {ok, [#repository_package{name= "package2", branch= "branch2", changelog= <<"cant get changelog">>}]}
           }
       ]
   ]}.
  
positive.code:         {
              "something in dets, but nothing to delete",
              [{"package1", "branch1"}],
              [#package{name=Name, branch=Branch} || {Name, Branch} <- [
                  {"package1", "branch1"}, {"package2", "branch2"}
              ]],
              timeout
  
negative.code:                 ?assertEqual(
                      {changes, #changes{
                          packages = [
                              #repository_package{
                                  name=package, branch=branch, tag=tag, archive_name=archive_name,
                                  archive_type = type, current_revno = last_revno
                              }
  