Fixing index controller test