(#22159) Fix anonymization for catalog edges

This patch ensures the context for edges is correct, without it edges always
get anonymized breaking exports when using the moderate profile.

This patch also consolidates the tests for full & none profiles, adding tests
for moderate also.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #622 from kbarber/ticket/1.4.x/22159-fix-edges-for-anon

(#22159) Fix anonymization for catalog edges