Lifecycle tests almost working