added Test for IndexController