Use constants instead of hardcode country/region IDs throughout tests. Add test for as_array()