fixed typos in tests.py and models.py