Fix up Google tests to run standalone

This PR copies some functions from the Oauth2 test over to the Google Oauth2 tests. I'm not absolutely certain we need to actually be re-testing these within the Google package, but we'll leave them here for now.