index controller tests