adding test for index controller