Add tests for an event with a related target

Make the test more comprehensive and readable.

BUG=531990

Review-Url: https://codereview.chromium.org/2053353002
Cr-Commit-Position: refs/heads/master@{#400121}
2 files changed