Added test for instance variable visibility method acting as a method def decorator.
Refactored decorator helper to yield AST nodes.