if digesting specific paths only update for those paths

Before this would wipe out the digests and only add the digests
for the specific paths.  Was missing a test for this so added that
as well.