Wip/package mapping tests

Adding some tests for the package mapping stuff before changing things any further.
Some of the `LinuxPackageMapping` methods should be refactored and the new
`MappingsHelper` should be used.