Added MIDDLEWARE_CLASSES to support 1.7 testing