Fix incorrect assertion

Incorrect assertion in test_index_max_size. Some formatting as well.

Change-Id: I6e6fcb3c9d72b0c9ea8f0696d51b13575e852378
Merge "Fix incorrect assertion"