Test SP compaction