add compaction test for #3919