Add controller test for index