Fixes equals and hashCodes for all models, and provides test units.