tests: add tests for packagesController routes
packagesController: fix package-ids routes being broken