Add tests for compression and decompression