Add Armor.compare and related tests.