[TEST] Make sure refresh is called by `indexRandom`, even if the list of documents to index is empty.