[1.7.x] Simplified indexes tests.
[1.7.x] Simplified indexes tests.

Backport of 43a80f48 from master

oscaro/django,jyotsna1820/django,jyotsna1820/django,oscaro/django,oscaro/django,oscaro/django,jyotsna1820/django,jyotsna1820/django