added test for deep embedded document