Here you call the health api only after the first index creation, which might lead to issues. I would use the common methods in the base class like this, as you don't seem to need a single shard, neither to create the type explicitly as far as I understood:
```
createIndex("index1");
createIndex("index2");
ensureGreen();
```

Makes sense?