Fixed test for index action