test envir code completed