Moved the toEventStore() method to being exported
Retrofitted tests to client.toEventMessage()