[git/cache] Add test coverage for #sync