update 83% unittest code coverage for models.py