Change heap size and elaborate compaction test.