Test: missing {} from log command in indexRandom