improved compression test
fixed stupid bug in decompression code