add model validations & tests for models