Added test for apply function in EnvSimple