Added unit tests for EventStore