anchor.diff:    ?assertEqual({error, can_not_check_grp_perms}, storage_files_manager:check_perms("groups/testgroup/somefile", SHInfo)),
   
     ?assert(meck:validate(fslogic_utils)),
  -  meck:unload(fslogic_utils),
     ?assert(meck:validate(fslogic)),
  -  meck:unload(fslogic),
  -  ?assert(meck:validate(veilhelpers)),
  -  meck:unload(veilhelpers).+  ?assert(meck:validate(veilhelpers)).
positive.code:   ?assertEqual({ok, "0"}, Ans5).
  
  %% Tests if permissions in users dir are checked correctly
  check_perms_user_file_test() ->
    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)),
  
negative.code: -define(SH, "DirectIO").
  -define(TEST_ROOT, "/tmp/veilfs/"). %% Root of test filesystem
  -define(SH2, "ClusterProxy").
  
  perms_test_() ->
    {foreach, fun setup/0, fun teardown/1, [fun check_perms_user_file/0, fun check_perms_read_group_file/0, fun check_perms_group_perms_file/0, fun check_perms_group_write_file/0]}.
  
  setup() ->
    meck:new(fslogic),
    meck:new(veilhelpers),
    meck:new(fslogic_utils).
  
  teardown(_) ->
    meck:unload(fslogic_utils),
    meck:unload(veilhelpers),
    meck:unload(fslogic).
  
  %% This test checks if data from helpers is cached
  file_name_cache_test() ->
  