test that we never call build_middleware_stack after initialization