model.py unittests