Persistence test additions & tweaks

AssertEquality.For(ItemCategory, ItemCategory) now checks Code for null
value before doing Equals comparison.