We test all flags at org.elasticsearch.indices.stats.SimpleIndexStatsTests#testAllFlags , so no need to test this here? not sure why we need this stats call?