Simplify lifecycle listener tests