added serializer/deserializers, and event serialization tests to be reused