This adds a couple more unit tests, and a few fixes to the last version of this series, with the notable addition being support xz compression Ilia: how would you feel about dropping shell support and just using backports.lzma or not having xz support?