Fix TestBuildCacheADD to check cache in out, not in id

Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
Merge pull request #8416 from LK4D4/fix_build_cache_test

Fix TestBuildCacheADD to check cache in out, not in id