Fix error with embedded
Add test for embedded objects in properties