Added MIDDLEWARE_CLASSES to runtests.py settings