add test for compress