tests for functions in enviroment.sml