Unit tests for EventSourcedRepository