Add test for IndexController