The test framework generates the number of shards and replicas randomly these days, so there is no need to do it yourself anymore.