[google|dns] Improve non-mocked tests, add support for get_managed_zone, with tests.

@icco please ignore the previous pull requests, this one has both commits.
This is for #2865