Fix test with negative index