Fix failing test for event repository spec