Unit tests for attribute vector compaction.