updated life-cycle environment tests using factory
Merge pull request #1321 from sghai/env-test

Updated life-cycle environment tests using UI factory