updated life-cycle environment tests using factory