Tests for life cycle handlers.