Fixed bug in testIndexReversed() junit test.