How to do Lifecycle Testing