adding unit test for task environment setup