Prime Minister Narendra Modi faces his biggest test as India's appeal as the world's fastest-growing economy dims for global investors.