Fix end-to-end event logger test.

Checking that events have been written to the log file while the
logger is running is brittle; instead, check that expected events
show up in the file after the job is done, since that's really
the functionality we care about.

Also add another name parsing test, just for completeness.