Add application-lifecycle test