Implement test for GeoIP2DatabaseAdapter

Make improvements to adapter as well.