fix bug in test, where it didn't compare the actual contents of the events