added a wrapper and stub wrapper for google api to allow for testing