Fix geoip view.
Add test for geoip