Fixed warning "MIDDLEWARE_CLASSES is not set" in tests (1_7.W001).