Merge "Add a test to verify lifecycle events are triggered" into pi-dev
am: 139ebd91c0

Change-Id: Ia8ce612d5daa6bb17114188729a295c684eef2e0