Adds test for appengine.get_sync

Test the handling of APIError.