Added t/used.t and fixed test for has_ipcountry