Fixed the addTestData() function (moved it outside models.py)

This should be a better location.