Add tests for nested nodes