test written for index