You have OECD model: permanent home, center of vital interest, habitual abode, nationality. This model is used in disputes when there is DTA signed.
In your case, permanent home test is equaled in all three countries. Next: center of vital interest test.