half working app.testing in manage.py