add tests for packages controller