Added test for index