return service_provider_;

the following scoped_ptr method will work:
operator Testable() const { return impl_.get() ? &scoped_ptr::impl_ : NULL; }