lzma: reworked the test code

We have now a test for direct encoding and tree encoding.