Test case for nested variables