test update and error handling in CabalApi.