Fixes the UI life-cycle environment test cases for UI update
Merge pull request #1764 from kbidarkar/fix-contentenv-tests

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