A previous PR fixed a SyntaxError by combining duplicate event_hooks,
but didn't include test coverage for the inline `validate_redirect` hook.
This adds a dedicated unit test mapping to that inline function to satisfy
the 70% coverage requirement on the PR diff.
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>