Switch to estraverse
Add function block declaration to scope check test