The above is a little brittle in that it will break if the number (or order) of events were to change.  Not a big deal, but since we have a few tests in here that all do the same thing, we could write a helper function that scans through the events and pulls out just the @"end-test" event.