model classes unit tests