Add unit tests for external serialization in Event