Add test code for compressing