Does this require a different configuration for ES for tests to run correctly? If so, that needs to be stated somewhere and the test infrastructure should probably be changed to make sure that it's running against an ES cluster that has at least 2 shards.