Good question!!! I cant remember where I read but I saw something like in the presence of foreign service officer (instead of citizenship judge), one can take the oath of citizenship while outside Canada.
I wasn't expecting that Ill be allowed to take citizenship test while outside Canada...