[TEST] Randomized number of replicas between 0 and the number of data nodes - 1

Randomized number of replicas between 0 and the number of data nodes - 1 (rather than just between 0 and 1) when creating the random index template before each test