'cell-env' function tested and complete