test for nested object