test for nested named structures