Add more tests
Add more tests

Test some more instlalation apis, and some error conditions.

Closes: #2244
Approved by: alexlarsson

flatpak/flatpak,flatpak/flatpak,flatpak/flatpak,flatpak/flatpak,matthiasclasen/flatpak,flatpak/flatpak,matthiasclasen/flatpak,matthiasclasen/flatpak,matthiasclasen/flatpak,matthiasclasen/flatpak