May need a "bona fide resident test" or "physical presence test" to establish as residence status, similar to those for US citizens and RAs abroad who want to qualify for tax benefit such as foreign earned income exclusion. Just my guess, because the law is design under the same set of logic.