Add tests to check available/installed packages

With the self-maintained repository, it's possible to check available
and installed packages in the json output.