Wrote test method for persisting an event