anchor.diff:  %% @end
   -spec post_and_stream_test() -> ok | {error, term()}.
   post_and_stream_test() ->
  -	Response1 = post_request(?RESOURCE_URL, "application/json", 
  +	Response1 = post_request(?RESOURCES_URL, "application/json", 
   							"{
   								\"model\" : \"testwithstream\",
   								\"tags\" : \"testtag\"
  
positive.code: 	{ok, {{_Version, 200, _ReasonPhrase}, _Headers, Body}} = Response1,
  	Id = lib_json:get_field(Body, "_id"),
  	api_help:refresh(),
  	{ok, {{_Version1, 200, _ReasonPhrase1}, _Headers1, _Body1}} = httpc:request(post, {"http://localhost:8000/streams", [],"application/json", "{\"name\" : \"search\",\"resource_id\" : \""++lib_json:to_string(Id)++"\", \"private\" : \"false\", \"tags\":\"test_tag\"}"}, [], []),
  	api_help:refresh(),
  	{ok, {{_Version11, 200, _ReasonPhrase11}, _Headers11, _Body11}} = httpc:request(post, {"http://localhost:8000/streams", [],"application/json", "{\"name\" : \"search2\",\"resource_id\" : \""++lib_json:to_string(Id)++"\", \"private\" : \"false\", \"tags\":\"test2\"}"}, [], []),
  	api_help:refresh(),
  	Response2 = get_request(?SUGGEST_URL++"testupdate"),
  	check_returned_code(Response2, 200),
  	{ok, {_, _ ,Body2}} = Response2,
  	?assertEqual(<<"testtag">>,lib_json:get_field(Body2, "suggestions[0].payload.tags")),
  	?assertEqual(true, lib_json:field_value_exists(Body2, "suggestions[0].payload.streams[*].tags",<<"test_tag">>)),
  	?assertEqual(<<"test2">>, lib_json:get_field_value(Body2, "suggestions[0].payload.streams[*].tags",<<"test2">>)),
  	{ok, {{_Version21, 200, _ReasonPhrase21}, _Headers21, _Body21}} = httpc:request(put, {"http://localhost:8000/resources/"++lib_json:to_string(Id), [],"application/json", "{\"model\" : \"testupdate\",\"tags\" : \"newtag\"}"}, [], []),
  	api_help:refresh(),
  	{ok, {_, _ ,Body3}} = get_request(?SUGGEST_URL++"testupdate"),
  	?assertEqual(<<"newtag">>,lib_json:get_field(Body3, "suggestions[0].payload.tags")),
  	?assertEqual(true, lib_json:field_value_exists(Body3, "suggestions[0].payload.streams[*].tags",<<"test_tag">>)),
  	?assertEqual(<<"test2">>, lib_json:get_field_value(Body3, "suggestions[0].payload.streams[*].tags",<<"test2">>)).
  
negative.code: 	{ok, {{_Version, 200, _ReasonPhrase}, _Headers, Body}} = Response1,
  	Id = lib_json:get_field(Body, "_id"),
  	api_help:refresh(),
  	{ok, {{_Version1, 200, _ReasonPhrase1}, _Headers1, _Body1}} = httpc:request(post, {?STREAMS_URL, [],"application/json", "{\"name\" : \"search\",\"resource_id\" : \""++lib_json:to_string(Id)++"\", \"private\" : \"false\", \"tags\":\"test_tag\"}"}, [], []),
  	api_help:refresh(),
  	{ok, {{_Version11, 200, _ReasonPhrase11}, _Headers11, _Body11}} = httpc:request(post, {?STREAMS_URL, [],"application/json", "{\"name\" : \"search2\",\"resource_id\" : \""++lib_json:to_string(Id)++"\", \"private\" : \"false\", \"tags\":\"test2\"}"}, [], []),
  	api_help:refresh(),
  	Response2 = get_request(?SUGGEST_URL++"/testwithstream"),
  	check_returned_code(Response2, 200),
  	{ok, {_, _ ,Body2}} = Response2,
  	?assertEqual(<<"testtag">>,lib_json:get_field(Body2, "suggestions[0].payload.tags")),
  