anchor.diff:    ?assertEqual({ok, "0"}, Ans5).
   
   %% Tests if permissions in users dir are checked correctly
  -check_perms_user_file_test() ->
  +check_perms_user_file() ->
     SHInfo = #storage_helper_info{name = ?SH, init_args = [?TEST_ROOT]},
  -  meck:new(fslogic),
   
     meck:expect(fslogic, get_user_root, fun() -> {ok, "testuser"} end),
     ?assertEqual({ok, true}, storage_files_manager:check_perms("users/testuser/somefile", SHInfo)),
  
positive.code:   ?assertEqual({error, too_short_path}, storage_files_manager:check_perms("something", SHInfo)).
  
  %% Tests if write permissions in groups dir are checked correctly
  check_perms_group_write_file_test() ->
    SHInfo = #storage_helper_info{name = ?SH, init_args = [?TEST_ROOT]},
    meck:new(fslogic),
    meck:new(veilhelpers),
    meck:new(fslogic_utils),
  
    EtsName = logical_files_manager:get_ets_name(),
    ets:delete(EtsName),
    meck:expect(fslogic, get_user_doc, fun() -> {ok, #veil_document{record = #user{login = "testuser"}}} end),
    meck:expect(fslogic, get_user_groups, fun(_, _) -> {ok, [xyz, abc, "testgroup", g123]} end),
    meck:expect(veilhelpers, exec, fun(getattr, _, _) -> {0, #st_stat{st_uid = 1000, st_mode = 8#660}} end),
    ?assertEqual({ok, true}, storage_files_manager:check_perms("groups/testgroup/somefile", SHInfo)),
  
    ets:delete(EtsName),
    meck:expect(fslogic_utils, get_user_id_from_system, fun
      ("testuser") -> "1000\n";
  
negative.code:   meck:expect(fslogic, get_user_root, fun() -> {error, error} end),
    storage_files_manager:check_perms("users/testuser/somefile", SHInfo),
  
    ?assert(meck:validate(fslogic)).
  
  %% Tests if read permissions in groups dir are checked correctly
  check_perms_read_group_file() ->
    SHInfo = #storage_helper_info{name = ?SH, init_args = [?TEST_ROOT]},
  
    meck:expect(fslogic, get_user_doc, fun() -> {ok, #veil_document{record = #user{login = "testuser"}}} end),
    meck:expect(fslogic, get_user_groups, fun(_, _) -> {ok, [xyz, abc, "testgroup", g123]} end),
  