added methods for retrieval and update of LifecycleState and corresponding tests