Fixed issues with both compressor and decompressor, added more tests