Moved lifecycle example under tests.