anchor.diff:          {
               "bad return",
               ["__test_repo/error/error"],
  -            [#package{name="error", branch="bad_return"}],
  +            [#repository_package{name="error", branch="bad_return"}],
               fun(Result) ->
                   ?assertEqual(
  -                    {ok, [#package{name="error", branch="bad_return", status=error, failed_at=export_archives, reason=bad_return}]},
  +                    {ok, [#repository_package{name="error", branch="bad_return", status=error, failed_at=export_archives, reason=bad_return}]},
                       Result
                   )
               end
  
positive.code:     end || {Message, Packages, Result} <- [
          {
              "plugin returns valid response",
              [#package{name= "package1", branch= "branch1"}],
              {ok, [#package{name= "package1", branch= "branch1", diff= <<"branch1 diff">>}]}
          },
          {
              "checking packages with error status ignored",
              [#package{name= "package1", branch= "branch1", status=error}],
              {ok, [#package{name= "package1", branch= "branch1", status=error}]}
          },
          { 
              "error while getting diff",
              [#package{name="package2", branch="branch2"}],
              {ok, [#package{name="package2", branch="branch2", diff= <<"cant get diff">>}]}
          }
      ]
  ]}.
  
negative.code:         {
              "deleting missing branches n packages",
              [{"package1", "branch1"}, {"package3", "branch3"}],
              [#repository_package{name=Name, branch=Branch} || {Name, Branch} <- [
                  {"package1", "branch1"}, {"package2", "branch2"}
              ]],
              {'$gen_cast',
  