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

I will fix just this particular instance anyways in some time. :)