Adding Application Lifecycle Test