anchor.diff:  	{ok, _, _} = ocs_rating:rate(diameter, ServiceType, undefined,
   			undefined, undefined, ServiceId, Timestamp, undefined, undefined,
   			initial, [], [{messages, NumOfEvents}], SessionId),
  -	{ok, #bucket{remain_amount = R, reservations = Rs}} = ocs:find_bucket(BId),
  +	{ok, #bucket{remain_amount = R,
  +			attributes = #{reservations := Rs}}} = ocs:find_bucket(BId),
   	R = RemAmount - (PackagePrice * NumOfEvents),
  -	[{_, _, Reserved, _, _, _}] = Rs,
  +	#{SessionId := #{reserve := Reserved}} = Rs,
   	Reserved = PackagePrice * NumOfEvents.
   
   debit_sms() ->
  
positive.code: 			[], SessionId),
  	RemAmount3 = RemAmount2 - (PackagePrice * 2),
  	{ok, #bucket{remain_amount = RemAmount3}} = ocs:find_bucket(BId1),
  	[#bucket{reservations = _Reservations1},
  			#bucket{reservations = _Reservations2}] = lists:foldl(F2, [], ocs:get_buckets(ProdRef)),
  	Debit3 = rand:uniform(PackageSize),
  	Debit4 = rand:uniform(PackageSize),
  	{ok, _, _} = ocs_rating:rate(diameter,
  
negative.code: 	RemAmount = 13,
  	B1 = bucket(cents, RemAmount),
  	SessionId1 = [{'Session-Id', list_to_binary(ocs:generate_password())}],
  	R = #{SessionId1 => #{ts => erlang:system_time(millisecond),
  			debit => 100, reserve => 0}},
  	B2 = B1#bucket{attributes = #{bucket_type => normal, reservations => R}},
  	BId = add_bucket(ProdRef, B2),
  	Timestamp = calendar:local_time(),
  	SessionId2 = [{'Session-Id', list_to_binary(ocs:generate_password())}],
  