Merge interesting parts from eLBati:imp_encapsulated_tests https://github.com/nbessi/maintainer-quality-tools/pull/2