Unit tests for compression wrapper