add test for index action