Adds functional test for segments().
Adds functional test of indices.settings().
Adds functional test of indices.stats().