Add operator<< serialization support for Events.
Use the operator<< serialization method in the tests.
Get rid of unecessary pointer (use local variable instead).