The Bona Fide Resident Test can helping you to attain exclusion from foreign earned income and foreign housing To qualify for the bona fide residence test, you have to be a bona fide resident of a foreign country for a continuous uninterrupted period