test errors returned from malformed snippet api call