Feature/model validators

Extracted four model validators from the legacy file and wrote a test case for each validator.