Migrate lifecycle events in tests

Console always warns on event method deprecation, so time to upgrade event methods in tests.