add test for nested object