added test for IndexController