fixed broken unit test for negative index