fix lifecycle callback test