                 args.push(description)
                 "#{testArgName}.#{parsed.type}(#{args.join(', ')})"
             )
-            $mate.testing.parseFunction(funStr, Object.keys(@env)).forEach((m, index) =>
-                insertedString = testArgName + ".env."
+            $mate.testing.parseFunction(funStr, Object.keys(@getEnv())).forEach((m, index) =>
+                insertedString = testArgName + ".getEnv()."
                 pos = m + insertedString.length * index
                 funStr = funStr.substr(0, pos) + insertedString + funStr.substr(pos)
             )

        @unitResults = []
        @result = null
    define: (fun) ->
        fun(@env)
        @
    set: (fun) ->
        @_fun = fun
        @


class $mate.testing.Test
    constructor: (@description = "") ->
        @_env = {}
        @_children = []
        @_fun = null
        @_interpretedFunction = null
