added model tests and validations