test added for Bugzilla 1079999
Removed the duplicate test and updated the original test
Merge pull request #632 from sthirugn/envtest

test added for Bugzilla 1079999