core: testDiffFn must properly populate "Old" in computed attr diff
core: testDiffFn must properly populate "Old" in computed attr diff

When applying a diff to a value we verify that the "old" value in diff is
consistent with the given prior value, as a safety check.

The mock must comply with this or else any tests that produce diffs with
computed new values will not pass the safety check.

This change is verified by the now-passing TestContext2Apply_taintDep .

hashicorp/terraform-plugin-sdk,hashicorp/terraform-plugin-sdk