Fix event entity persistence test