tests for IndexController