anchor.diff:  	{ok, _Subscriber1} = ocs:add_subscriber(SubscriberID,
   			Password, ProdID, Chars, Buckets),
   	SessionId = [{'Session-Id', list_to_binary(ocs:generate_password())}],
  -	{ok, _Subscriber2, _} = ocs_rating:rate(radius, SubscriberID,
  +	{ok, _Subscriber2, PackageSize} = ocs_rating:rate(radius, SubscriberID,
   			Destination, initial, [], [{octets, InitialReservation}], SessionId),
   	InterimReservation = PackageSize + InitialReservation,
   	{ok, #subscriber{buckets = [#bucket{remain_amount = 0,
  
positive.code: 	NasId = [{?NasIpAddress, ocs:generate_password()}],
  	SessionAttr = SessionId ++ NasIp ++ NasId,
  	{ok, _} = ocs:add_subscriber(SubscriberID, Password, ProdID, Chars, Buckets),
  	{ok, #subscriber{session_attributes = [{_, SessionAttr}]}, _} = ocs_rating:rate(radius,
  			SubscriberID, Destination, initial, [], [{octets, PackageSize}], SessionAttr).
  
  initial_overhead() ->
  	[{userdata, [{doc, "Reserved amount greater than requested reservation amount"}]}].
  
negative.code: 		start_date = erlang:system_time(?MILLISECOND),
  		termination_date = erlang:system_time(?MILLISECOND) + 2592000000}],
  	Destination = ocs:generate_identity(),
  	{ok, _Subscriber1} = ocs:add_subscriber(SubscriberID,
  			Password, ProdID, Chars, Buckets),
  	SessionId = [{'Session-Id', list_to_binary(ocs:generate_password())}],
  	{ok, _Subscriber2, PackageSize} = ocs_rating:rate(diameter, SubscriberID,
  			Destination, initial, [], [{octets, PackageSize}], SessionId),
  	{ok, #subscriber{buckets = [#bucket{remain_amount = 0,
  			reservations = [{_, PackagePrice, _}]}]}, PackageSize}
  			= ocs_rating:rate(diameter, SubscriberID, Destination, interim,
  			[{octets, PackageSize}], [{octets, PackageSize}], SessionId).
  
  interim_reservation_out_of_credit() ->
  	[{userdata, [{doc, "Out of credit on reservation"}]}].
  
  interim_reservation_out_of_credit(_Config) ->
  	ProdID = ocs:generate_password(),
  	PackagePrice = 100,
  	PackageSize = 1000,
  	Price = #price{name = "overage", type = usage,
  		units = octets, size = PackageSize, amount = PackagePrice},
  	Product1 = #product{name = ProdID, price = [Price]},
  	{ok, _Product2} = ocs:add_product(Product1),
  	SubscriberID = list_to_binary(ocs:generate_identity()),
  	Password = ocs:generate_password(),
  	Chars = [{validity, erlang:system_time(?MILLISECOND) + 2592000000}],
  	RemAmount = 110,
  	Buckets = [#bucket{units = cents, remain_amount = RemAmount,
  		start_date = erlang:system_time(?MILLISECOND),
  		termination_date = erlang:system_time(?MILLISECOND) + 2592000000}],
  	{ok, _Subscriber1} = ocs:add_subscriber(SubscriberID,
  			Password, ProdID, Chars, Buckets),
  	SessionId = [{'Session-Id', list_to_binary(ocs:generate_password())}],
  	Destination = ocs:generate_identity(),
  	{ok, _Subscriber2, PackageSize} = ocs_rating:rate(diameter, SubscriberID,
  			Destination, initial, [], [{octets, PackageSize}], SessionId),
  	{out_of_credit, _} = ocs_rating:rate(diameter, SubscriberID, Destination,
  			interim, [], [{octets, 2 * PackageSize}], SessionId),
  	{ok, #subscriber{buckets = RatedBuckets}} = ocs:find_subscriber(SubscriberID),
  	#bucket{remain_amount = 0} = lists:keyfind(cents, #bucket.units, RatedBuckets).
  
  