implemented get nodes for environment
test for environment nodes