Fix: Event initialization

Comparisons where wrong, object type id setting was missing
Add test for event with only event type set
Add test for deserializing a complete event