Fixes the UI life-cycle environment test cases for UI update