Updated life-cycle environment tests using UI factory

- using make_lifecycle_environment from UI factory and updated all tests
- updated docstrings