adding unit test for new environment methods