Adding a overload to configure that passes the builder to the func
Adding tests to make sure that IDisposable components are disposed when
the builder is disposed