Added support for PostFlush EventArgs in Listener tests

Previous tests were incorrectly sending LifecycleEventArgs to the Listener's postFlush method. Added a mocked UnitOfWork to the mock ObjectManager used by the Listener tests