#111 created stats as a library rather than a helper
test for some returned geo data, the API returns OK even when an error happens.
#111 moved helper to library