Add unit tests for EventStore