Fixing index controller test case