Fix division by zero error

* Return the geohash if the geo hash key length is greater than the geohash length
* Add test for generateHashKey