fix lifecycle event test