anchor.diff:          identifier = UserId1,
           name = UserName1,
           aceflags = ?no_flags_mask,
  -        acemask = ?read_mask
  +        acemask = ?read_all_object_mask
       }, cdmi),
       Ace2 = ace:to_json(#access_control_entity{
  -        acetype = ?deny_mask,
  -        identifier = UserId1,
  -        name = UserName1,
  -        aceflags = ?no_flags_mask,
  -        acemask = ?read_mask bor ?execute_mask
  -    }, cdmi),
  -    Ace3 = ace:to_json(#access_control_entity{
           acetype = ?allow_mask,
           identifier = UserId1,
           name = UserName1,
           aceflags = ?no_flags_mask,
  -        acemask = ?write_mask
  +        acemask = ?write_all_object_mask
       }, cdmi),
  -    Ace3Full = #{
  +    Ace2Full = #{
           <<"acetype">> => ?allow,
           <<"identifier">> => <<UserName1/binary, "#", UserId1/binary>>,
           <<"aceflags">> => ?no_flags,
  -        <<"acemask">> => ?write
  +        <<"acemask">> => <<
  +            ?write_object/binary, ",",
  +            ?write_metadata/binary, ",",
  +            ?write_attributes/binary, ",",
  +            ?delete/binary, ",",
  +            ?write_acl/binary
  +        >>
       },
   
       create_file(Config, FileName2),
       write_to_file(Config, FileName2, <<"data">>, 0),
  -    RequestBody15 = #{<<"metadata">> => #{<<"cdmi_acl">> => [Ace1, Ace2, Ace3Full]}},
  +    RequestBody15 = #{<<"metadata">> => #{<<"cdmi_acl">> => [Ace1, Ace2Full]}},
       RawRequestBody15 = json_utils:encode(RequestBody15),
       RequestHeaders15 = [?OBJECT_CONTENT_TYPE_HEADER, ?CDMI_VERSION_HEADER, user_1_token_header(Config)],
   
  
positive.code:     }, cdmi),
  
      MetadataAclReadFull = json_utils:encode(#{<<"metadata">> => #{<<"cdmi_acl">> => [ReadFull, WriteAcl]}}),
      MetadataAclReadExecute = json_utils:encode(#{<<"metadata">> => #{<<"cdmi_acl">> => [Read, Execute, WriteAcl]}}),
      MetadataAclDelete = json_utils:encode(#{<<"metadata">> => #{<<"cdmi_acl">> => [Delete]}}),
      MetadataAclWrite = json_utils:encode(#{<<"metadata">> => #{<<"cdmi_acl">> => [Write]}}),
      MetadataAclReadWrite = json_utils:encode(#{<<"metadata">> => #{<<"cdmi_acl">> => [Write, Read]}}),
      MetadataAclReadWriteFull = json_utils:encode(#{<<"metadata">> => #{<<"cdmi_acl">> => [ReadWriteVerbose]}}),
      MetadataAclReadWriteExecute = json_utils:encode(#{<<"metadata">> => #{<<"cdmi_acl">> => [Write, Read, Execute]}}),
  
      %%----- read file test ---------
      % create test file with dummy data
  
negative.code:     File3 = filename:join(Dirname1, "3"),
      File4 = filename:join(Dirname1, "4"),
  
      DirRead = ace:to_json(#access_control_entity{
          acetype = ?allow_mask,
          identifier = UserId1,
          name = UserName1,
          aceflags = ?no_flags_mask,
          acemask = ?read_all_container_mask bor ?traverse_container_mask
      }, cdmi),
      DirWrite = ace:to_json(#access_control_entity{
          acetype = ?allow_mask,
          identifier = UserId1,
          name = UserName1,
          aceflags = ?no_flags_mask,
          acemask = ?write_all_container_mask bor ?traverse_container_mask
      }, cdmi),
      DirMetadataAclReadWrite = json_utils:encode(#{<<"metadata">> => #{<<"cdmi_acl">> => [DirWrite, DirRead]}}),
      DirMetadataAclRead = json_utils:encode(#{<<"metadata">> => #{<<"cdmi_acl">> => [DirRead, WriteAcl]}}),
      DirMetadataAclWrite = json_utils:encode(#{<<"metadata">> => #{<<"cdmi_acl">> => [DirWrite]}}),
  
      % set acl to 'read&write' and test cdmi get request (should succeed)
      RequestHeaders2 = [user_1_token_header(Config), ?CDMI_VERSION_HEADER, ?CONTAINER_CONTENT_TYPE_HEADER],
      {ok, 204, _, _} = do_request(Workers, Dirname1, put, RequestHeaders2, DirMetadataAclReadWrite),
      {ok, 200, _, _} = do_request(WorkerP2, Dirname1, get, RequestHeaders2, []),
  
      % create files in directory (should succeed)
  