Added a bulk indexing while initializing test.

Relates to #4214