Add some compaction unit tests