Redmine#5342: test non-filebased repo

see https://cfengine.com/dev/issues/5342 https://cfengine.com/dev/issues/5245 https://cfengine.com/dev/issues/2986

DO NOT MERGE YET

Summary:

* adds more tests
* tries to allow versions like `[0-9].*` in `ComparePackageVersionsInternal` to fix an issue with Yum (this is not working yet and breaks some tests!!!)
* check for wildcards in the package spec to be passed to the package manager and, if they were not intentional, skip the package