anchor.diff:                                                          ?REQUEST2),
       true = cloudi_x_uuid:is_v1(TransId2),
       true = (TransId2 > TransId1),
  +    {error,
  +     {service_internal_start_failed,
  +      {{{badmatch,{error,invalid_state}},
  +        _},
  +       _}}} = cloudi_service_api:services_add([
  +        [{prefix, ?SERVICE_PREFIX1},
  +         {module, ?MODULE},
  +         {args, [{mode, init_send_sync}]},
  +         {options, [{automatic_loading, false}]}]
  +        ], infinity),
       ok.
   
   t_service_internal_async_1(_Config) ->
  +    % make sure asynchronous sends work normally, that recv_async
  +    % fails within the cloudi_service_init/3 callback with invalid_state,
  +    % and that an exception within cloudi_service_init/3 doesn't affect
  +    % other services
       Context = cloudi:new(),
       ServiceName = ?SERVICE_PREFIX1 ++ ?SERVICE_SUFFIX1,
       Self = self(),
  
positive.code: 
  %% test callbacks
  -export([t_service_internal_sync_1/1,
           t_service_internal_async_1/1]).
  
  -record(state,
      {
  
negative.code: %%%------------------------------------------------------------------------
  
  t_service_internal_sync_1(_Config) ->
      % make sure synchronous sends work normally,
      % fail within the cloudi_service_init/3 callback with invalid_state,
      % and that an exception within cloudi_service_init/3 doesn't affect
      % other services
      Context = cloudi:new(),
      ServiceName = ?SERVICE_PREFIX1 ++ ?SERVICE_SUFFIX1,
      Self = self(),
  