Added setUp and tearDown in ASTVisitor rule template