Improve testing on compress function