fixed alignment in compaction
fixed test