Add tests for packagesmatching using the package inventory.