add test for compress_threshold bug fix