Don't do this. Use assert_equals(e.lastEventId, "lastEventId")  and  assert_equals(e.data, "test1", "data")