[api] test for correct diffs with local links