persist user event unit tests