fix tests in IndexController