Add test for setCompression methods