Fixed bug with LifeCycleEventArgs. Fixed test case.