Added error checking, parameter validation, and tests to geoFireUtils