Fix/7317

This fixes #7317.
SearchRequestBuilder.toString now attempts to render the request's source before falling back to using the internal builder.
maybe you can create a `Client` manually instead and make this extend `ElasticsearchTestCase`? at the end of the day you don't really issue the request...