anchor.diff:      Resp = do_request(RestAddress ++ Endpoint, Headers, Method, Body, Options),
       ?assertMatch(bad, check_status(Resp)),
       check_bad_requests(Endpoints, Method, Body, ReqParams).
  -    +
  +
  +%% this function return contents of the list in Val
  +%% if Val is not list, it returns Val
  +fetch_value_from_list(Val) ->
  +    case is_list(Val) of
  +        true -> [Content] = Val,
  +            Content;
  +        _ -> Val
  +    end.
positive.code: get_user_default_space(ReqParams) ->
      {RestAddress, Headers, Options} = ReqParams,
      Response = do_request(RestAddress ++ "/user/spaces/default", Headers, get, [], Options),
      [DefSpace] = get_body_val([spaceId], Response),
      DefSpace.
  
  create_space_for_user(SpaceName, ReqParams) ->
      {RestAddress, Headers, Options} = ReqParams,
  
negative.code:         do_request(
              RestAddress ++ "/groups/" ++ binary_to_list(GID)++ "/users/token", Headers, get, [], Options
          ),
      Val = get_body_val([token], Response),
      fetch_value_from_list(Val).
  
  get_group_users(GID, ReqParams) ->
      {RestAddress, Headers, Options} = ReqParams,
  