Added: Coverage test for nested scopes and variables