test for country code logic
fixed country code logic
Merge pull request #2 from friedo/master

Fix minor logic error