(#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>