Tests for LocalVariables, FunctionArguments, and variable scoping