Test expansion & compaction