pass env to envir parameter and not to pos parameter of get()
store result of as.name() in mock object