Initial round of model validation and unit tests.