Shouldn't the shared container instance be used in tests, instead of a global container?