Add test for index