compression_wrapper: Better error messages for XZ errors and more tests.