NEW DELHIinfo-icon: Indian Prime Minister Narendra Modi's ruling party is likely to lose two heartland states while a third is too close to call, exit polls showed on Friday in the final test of popularity before a national election due by May next year.

Surveys broadcast at the end of voting for five state assemblies showed the ruling Hindu nationalist Bharatiya Janata Party (BJP) trailing behind the rival Congress party in some areas.

The actual votes will be counted on Tuesday, and exit polls have been wrong in the past, partly because of the sheer scale of Indian electionsinfo-icon involving millions of votes.

Still, nearly all the polls showed that the Congress -- led by Rahul Gandhi, the scion of the Nehru-Gandhi family -- will win a clear majority in western Rajasthan state and scrape through in eastern Chhattisgarh, according a survey of surveys pulled together by NDTV.

In Madhya Pradesh, the same polls suggested the BJP and the Congress were locked in a fight down to the wire.

The combined surveys showed the BJP winning 110 seats, the Congress 108, and smaller groups 12 in the 230-member house. To rule, a party requires 116 seats.

The three states are part of the northern Hindi belt, a bastion of the ruling Hindu nationalists.

"The BJP is struggling everywhere, for all its bravado," said Juhi Singh, a spokesman of the regional Samajwadi Party.

Modi, who came to power with a sweeping majority in 2014, has been praised for improving governance and cutting some red tape, but has been criticised for failing to create enough jobs for the thousands of young people entering the jobs marketinfo-icon every month.

He has also faced criticism for allowing hardliners in his party to undermine Indiainfo-icon's secular foundations.

Foreign investors who largely remain bullish on India's long-term prospects, are watching the state polls closely for clues to the national vote.