mock function constructor and class init re-written only with methodVisitor (lower level of abstraction)