tests: Instantiate metainfo cache once
Otherwise it's not getting destroyed and might do funky things on shutdown.
This doesn't fix the underlying issue (which I think is in libappstream) but we should have a clear life cycle in the test too as other wise the AsPool
might stick around.
Helps: #1240
Signed-off-by: Guido Günther agx@sigxcpu.org