I think Indian team for 2 nd and 3 rd test was decided and Irfan name was not there. Selector must have thought it is good idea to release Irfan to play Ranji matches rather just sitting idle. I do not think so, he was sent back just because he in poor form and low confidence. Also, I am sure they must have taken opinion of Irfan before taking this decision and discussed the situation. It is just a good move in benefit of Irfan and it's Ranji side back in home and personally he would prefer to play cricket rather Njoying weather of SA. He is surely not in low confidence after this decision since he knows his place in indian side is not too much in trouble.